package com.zbkj.crmeb.system.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.common.PageParamRequest;
import com.zbkj.crmeb.system.model.MessageConfig;
import com.zbkj.crmeb.system.model.Notice;
import com.zbkj.crmeb.system.request.MessageConfigSearchRequest;
import com.zbkj.crmeb.system.response.MessageConfigResponse;
import com.github.pagehelper.PageInfo;

import java.util.Map;

/**
 * 通知表
 *
 * @author lss
 * @email didiok@foxmail.com
 * @date 2024-07-25 13:36:21
 */
public interface MessageConfigService extends IService<MessageConfig> {

    PageInfo<MessageConfigResponse> getList(MessageConfigSearchRequest request);

    boolean addOrUpdate(MessageConfig messageConfig);

    /**
     * 发送消息通知和短信提醒
     * @param merId
     * @return
     */
    boolean sendWarningMessage(int merId);

    /**
     * 发送消息通知和短信提醒
     * @param merId
     * @return
     */
    boolean sendMessage(int merId, int businessCode, int templateId, String msg);
}

